//
//  ZLHomeSectionTitleView.m
//  ZLExamination
//
//  Created by Zheng on 2017/8/14.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "ZLHomeSectionTitleView.h"

@implementation ZLHomeSectionTitleView

- (instancetype)init {
    self = [super init];
    if (self) {
        
        self.backgroundColor = [UIColor whiteColor];
        
        [self addSubview:self.titleLbl];
        [self addSubview:self.totalLbl];
        
        [_titleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(15);
            make.centerY.equalTo(self);
        }];
        
        [_totalLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(-15);
            make.centerY.equalTo(self);
        }];
    }
    return self;
}

- (UILabel *)titleLbl {
    if (!_titleLbl) {
        _titleLbl = [[UILabel alloc] init];
        _titleLbl.font = kMyFont(13);
    }
    return _titleLbl;
}

- (UILabel *)totalLbl {
    if (!_totalLbl) {
        _totalLbl = [[UILabel alloc] init];
        _totalLbl.font = kMyFont(13);
        _totalLbl.textColor = [UIColor darkGrayColor];
        _totalLbl.text = @"全部 ›";
    }
    return _totalLbl;
}




@end
